﻿<%@ Control Language="C#" AutoEventWireup="true" CodeBehind="UCPhongHoc.ascx.cs" Inherits="Web.giamthi.UCPhongHoc" %>
<style type="text/css">
    .style1
    {
        width: 100%;
    }
    .style2
    {
        width: 400px;
    }
</style>

<table class="style1">
    <tr>
        <td valign="top">
            <asp:GridView ID="GridView1" runat="server" AutoGenerateColumns="False" 
                DataKeyNames="MaPH" onrowdeleting="GridView1_RowDeleting" 
                onselectedindexchanging="GridView1_SelectedIndexChanging" Width="100%" 
                BackColor="White" BorderColor="#336666" BorderStyle="Double" BorderWidth="3px" 
                CellPadding="4" GridLines="Horizontal" 
                onpageindexchanging="GridView1_PageIndexChanging" 
                onrowdatabound="GridView1_RowDataBound">
                <Columns>
                    <asp:BoundField DataField="maph" HeaderText="Mã Phòng" />
                    <asp:BoundField DataField="tenph" HeaderText="Tên Phòng" />
                    <asp:BoundField DataField="tongsoghe" HeaderText="Tổng Số Ghế" />
                    <asp:BoundField DataField="trangthai" HeaderText="Trạng Thái" />
                    <asp:CommandField ShowSelectButton="True" SelectText="Sửa" />
                    <asp:CommandField ShowDeleteButton="True" DeleteText="Xóa" />
                </Columns>
                <FooterStyle BackColor="White" ForeColor="#333333" />
                <HeaderStyle BackColor="#336666" Font-Bold="True" ForeColor="White" />
                <PagerStyle BackColor="#336666" ForeColor="White" HorizontalAlign="Center" />
                <RowStyle BackColor="White" ForeColor="#333333" HorizontalAlign="Center" />
                <SelectedRowStyle BackColor="#339966" Font-Bold="True" ForeColor="White" />
                <SortedAscendingCellStyle BackColor="#F7F7F7" />
                <SortedAscendingHeaderStyle BackColor="#487575" />
                <SortedDescendingCellStyle BackColor="#E5E5E5" />
                <SortedDescendingHeaderStyle BackColor="#275353" />
            </asp:GridView>
        </td>
        <td width="50">
            &nbsp;</td>
        <td>
            <table class="style2">
                <tr>
                    <td colspan="2">
                        <asp:Label ID="lblError" runat="server"></asp:Label>
                    </td>
                </tr>
                <tr>
                    <td>
                        &nbsp;</td>
                    <td>
                        <asp:Label ID="lblId" runat="server"></asp:Label>
                    </td>
                </tr>
                <tr>
                    <td>
                        Tên phòng (*) :</td>
                    <td>
                        <asp:TextBox ID="txtTenPhong" runat="server" Width="200px"></asp:TextBox>
                    </td>
                </tr>
                <tr>
                    <td>
                        &nbsp;</td>
                    <td>
                        &nbsp;</td>
                </tr>
                <tr>
                    <td>
                        Tổng số ghế (*) :</td>
                    <td>
                        <asp:TextBox ID="txtTongSoGhe" runat="server" Width="200px"></asp:TextBox>
                    </td>
                </tr>
                <tr>
                    <td>
                        &nbsp;</td>
                    <td>
                        &nbsp;</td>
                </tr>
                <tr>
                    <td>
                        Trạng thái</td>
                    <td>
                        <asp:RadioButton ID="rdChua" runat="server" Checked="True" GroupName="gtt" 
                            Text="Chưa sử dụng" />
                        <asp:RadioButton ID="rdDang" runat="server" GroupName="gtt" 
                            Text="Đang sử dụng" />
                    </td>
                </tr>
                <tr>
                    <td>
                        &nbsp;</td>
                    <td>
                        &nbsp;</td>
                </tr>
                <tr>
                    <td>
                        &nbsp;</td>
                    <td>
                        <asp:Button ID="btnLuu" runat="server" onclick="btnLuu_Click" Text="Lưu" />
&nbsp;
                        <asp:Button ID="btnHuy" runat="server" onclick="btnHuy_Click" Text="Hủy" />
                    </td>
                </tr>
                <tr>
                    <td>
                        &nbsp;</td>
                    <td>
                        &nbsp;</td>
                </tr>
            </table>
        </td>
    </tr>
</table>

